package cn.edu.nsmc.modules.sys.service;

import java.util.List;
import java.util.Map;

import cn.edu.nsmc.common.utils.R;
import cn.edu.nsmc.modules.sys.form.req.ReqFeeBackWorksheetBody;
import cn.edu.nsmc.modules.sys.form.req.ReqWorkSheetListBody;
import com.baomidou.mybatisplus.extension.service.IService;

import cn.edu.nsmc.common.utils.PageUtils;
import cn.edu.nsmc.modules.sys.entity.SysWorksheetRecord;
import cn.edu.nsmc.modules.sys.form.req.ReqAssignWorksheetBody;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by Lee Yian on 2024/2/24 19:29
 */
public interface SysWorksheetRecordService extends IService<SysWorksheetRecord> {
    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params, ReqWorkSheetListBody listBody);

    Map<Integer, List<SysWorksheetRecord>> wxList(Long userId);

    String assignWorksheet(ReqAssignWorksheetBody reqAssignWorksheetBody);

    String feedbackWorksheet(ReqFeeBackWorksheetBody feedBackWorksheetBody);

    String rejectWorksheet(ReqFeeBackWorksheetBody feedBackWorksheetBody);

    R getList(SysWorksheetRecord sysWorksheetRecord,Integer page,Integer size);

    R commentWorksheet(Long id, String note);

    R auditWorksheet(List<Long> ids, Integer auditType, String cause);

    void export(ReqWorkSheetListBody listBody, HttpServletResponse response);
}
